package com.golden.order02.util;

public enum HttpStatus {

	SYSTEM_ERROR("系统错误", 500),

	LOGIN_ERROR("登陆错误", 401),

	LOGIN_AUTHOR_ERROR("你没有登陆权限", 401),

	USER_ACTIVATION_ERROR("用户未激活", 515),

	BINDING_ERROR("绑定失败", 516),

	UNSUBSCRIBE_ERROR("未关注微信公众号", 517),

	SUCCESS("成功", 200);


	private int errorCode;

	private String msg;

	private HttpStatus(String msg, int errorCode) {
		this.msg = msg;
		this.errorCode = errorCode;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
